import { UIStack } from "../etc/UIStack";
import { MainUI } from "../ui/MainUI";

export class GuiModuleC extends ModuleC<GuiModuleS, null>{
    
    mainUI:MainUI

    static uiStack:UIScript[] = []

    protected onStart(): void {
        this.mainUI = UIStack.setDefault(MainUI)

        // InputUtil.onKeyDown(Keys.F6, ()=>{
        //     this.mainUI.showMoneyTransition(15)
        // })
    }

    mainUIVisible():boolean{
        return this.mainUI.visible
    }
}

export class GuiModuleS extends ModuleS<GuiModuleC, null>{ }